<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <style>
    body {
      width: 100%;
      height: 100vh;
      font-size: 16px;
      font-family: Arial, sans-serif;
      background-color: #f0f0f0;
      color: #333;
      margin: 0;
      padding: 0px;
      box-sizing: border-box;
      width: 100%;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.6;
      text-align: justify;
    }

    a {
      color: #007bff;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    ul,
    ol {
      list-style-type: disc;
      margin-left: 20px;
    }

    button {
      background-color: blue;
    }

    .my-div {
      width: 80px;
      height: 30px;
      background-color: #f1f2f6;
      border-bottom: 4px solid #c8ced7;
      border-right: 4px solid #c8ced7;
      text-align: center;
      border-radius: 18px;
      line-height: 30px;
      padding: auto;
      flex-direction: column;
      font-weight: 700;
      box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    }

    .my-top {
      width: 100%;
      height: 40px;
      background-color: #b8c0e1;
    }

    .container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      max-width: 1200px;
      margin: 0 auto;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .my-left {
      flex: 1;
      height: 100%;
      background-color: #dcf1d1;
    }

    .my-mid {

      flex: 3;
      height: 100%;
      background-color: #f1dcf0;
      display: inline-block;
    }
  </style>
  <!-- 标题 -->
  <title>Web前端初</title>
</head>

<body>

  <div class="my-top">
    <span>toptoptop</span>
  </div>

  <div class="container">


    <div class="my-left">
      <span>123456left</span>
      <div>123</div>
      <div class="my-div" style="display: inline-block;">1+1=?</div>
      <div style="display: inline-block;" onclick="alert('sb')">789</div>
    </div>
    <div class="my-mid">
      <button>许个愿吧</button>
      <a href="index.html">23333</a>
    </div>
  </div>


  <script>
    document.querySelector('button').onclick = function () {
      alert('有钱有闲')
    }
    document.querySelector('.my-div').onclick = () => {

      let a = Math.floor(Math.random() * 100)

      alert(a)
    }
    document.querySelector('.my-top').onclick = () => {
      alert('你是内个?')
    }
  </script>
</body>

</html>